package com.foreknow.demo6;

public class Person {
    private int id;
    private String name;
    private int[] nums;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int[] getNums() {
        return nums;
    }

    public void setNums(int[] nums) {
        this.nums = nums;
    }

    public Person() {

    }

    public Person(int id,String name) {
        this.id = id;
        this.name = name;
        nums = new int[3];
    }

    @Override
    public String toString() {
        return "这是一个对象";
    }

    public static void main(String[] args) {
        Person person = new Person(10,"fender");
        System.out.println(person.toString());
    }
}
